package com.lxh.composite;

/**
 * 人力资源部 具体的部门属于叶子
 * Create by lxh on 2020/2/12
 */
public class HRDepartment extends Company {

    public HRDepartment(String name) {
        super(name);
    }

    @Override
    public void add(Company company) {

    }

    @Override
    public void remove(Company company) {

    }

    @Override
    public void display(int depth) {
        for (int i = 0; i < depth; i++) {
            System.out.print("-");
        }
        System.out.print(name);
        System.out.println();
    }
}
